#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int panduan(int a)
{
    if (a % 4 == 0 && a % 100 != 0 || a % 400 == 0)
        return 1;
    return 0;
}
int main() {
    int a = 0;
    while (scanf("%d", &a) != -1)
    {
        if (panduan(a))
            printf("YES\n");
        else
            printf("NO\n");

    }
    return 0;
}